package com.ruoyi.project.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同报销对象 expense_claim
 * 
 * @author ruoyi
 * @date 2025-04-06
 */
public class ExpenseClaim extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报销单id */
    private Long claimId;

    /** 合同id */
    @Excel(name = "合同id")
    private Long contractId;

    /** 报销金额 */
    @Excel(name = "报销金额")
    private BigDecimal claimAmount;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 报销类型 */
    @Excel(name = "报销类型")
    private String claimTpye;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 合同对象 */
    @Excels({
            @Excel(name = "合同名称", targetAttr = "contractName", type = Excel.Type.EXPORT)
    })
    private Contract contract;

    public void setClaimId(Long claimId) 
    {
        this.claimId = claimId;
    }

    public Long getClaimId() 
    {
        return claimId;
    }
    public void setContractId(Long contractId) 
    {
        this.contractId = contractId;
    }

    public Long getContractId() 
    {
        return contractId;
    }
    public void setClaimAmount(BigDecimal claimAmount) 
    {
        this.claimAmount = claimAmount;
    }

    public BigDecimal getClaimAmount() 
    {
        return claimAmount;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setClaimTpye(String claimTpye) 
    {
        this.claimTpye = claimTpye;
    }

    public String getClaimTpye() 
    {
        return claimTpye;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    public Contract getContract()
    {
        return contract;
    }

    public void setContract(Contract contract)
    {
        this.contract = contract;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("claimId", getClaimId())
            .append("contractId", getContractId())
            .append("claimAmount", getClaimAmount())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("claimTpye", getClaimTpye())
            .append("notes", getNotes())
            .toString();
    }
}
